package com.hp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hp.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface DepartmentMapper extends BaseMapper<Department> {

    @Select("SELECT MAX(department.`department_number`) FROM department ")
    Integer selectMaxNum();

}
